/*
 * SunSpotApplication.java
 *
 * Created on 2012/10/15 7:10:19;
 */

package prj9.spotsample;

import java.io.IOException;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

/**
 * SunSPOTが実装するインターフェイスです
 */
public class SunSpotApplication extends MIDlet{

    protected void startApp() throws MIDletStateChangeException {
        try {
            RelayNode node = new RelayNode();
            node.work();
        } catch (IOException ex) {
        }
    }

    protected void pauseApp() {
        // This is not currently called by the Squawk VM
    }

    /**
     * Called if the MIDlet is terminated by the system. It is not called if
     * MIDlet.notifyDestroyed() was called.
     *
     * @param unconditional If true the MIDlet must cleanup and release all
     * resources.
     */
    protected void destroyApp(boolean unconditional) throws MIDletStateChangeException {
    }
}